acting the maggot

messing around
> Friend: Did you you hear Sean got detention?
> You:What for?
> Friend: He was acting the maggot in class.